<?php
use yii\helpers\Html;
use yii\helpers\Url;
use app\lib\WeixinUtils;

/* @var $this yii\web\View */
/* @var $content string 字符串 */


$web = Url::to("@web");

?>

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <title>余额提现</title>
    <link href="<?=$web?>/css/fx/withdrawals.css" rel="stylesheet" type="text/css">
    <link href="<?=$web?>/css/fx/global.css" rel="stylesheet" type="text/css">
    <script src="<?=$web?>/js/jquery.js"></script>
    <script src="<?=$web?>/js/tools.js?1"></script>
    <script>
        $(function ($) {
            var w = $(document).width();
            if (w > 640) {
                w = 640;

            }
            $("html").css("font-size", w * 20 / 320);
        });
        var isExec=false;
        getCashExec=function(){
            if (isExec==true){
                return;
            }

            var dom=$('.content_input input');

            var v=getNumVal_int(dom.val());

            if(v<=0){
                alert('输入错误');
                return;
            }
            //提交申请
            var data = {};
            data.cash = v;
            isExec=true;
            var re = returnjson("<?=Url::to(['wx-fx/get-cash-apply-handle'])?>", data);

            if (re.flag == 0) {
                alert(re.msg);
                isExec=false;
                return;
            } else {

                window.location.href = "<?=Url::to(["wx-fx/get-cash-schedule"]);?>?rid="+re.cash_record_Id ;
            }
        };
      
    </script>
</head>
<body>

<div class="head">
    <div class="head_content">
        <div class="content_words"><span>金额</span></div>
        <div class="content_input">
            <input type="tel"  oninput="checkNumVal_int(this)" placeholder="本次最多可转出<?=$cash?>元" style="width:12rem;height: 1.5rem;line-height: 1.5rem;overflow:hidden; border: none; font-size: 0.55rem; color: #000; ">
        </div>
    </div>
</div>
<div class="notes">
    <div><img src="<?=$web?>/img/fx/withdrawals_1.png" style="width:0.45rem;"></div>
    <div><span>余额提现回转到您的微信钱包账户，如有问题请联系&nbsp;400-8603-111</span></div>
</div>
<div class="button" onclick="getCashExec();">
    <div class="botton_frame">
        <div class="button_radius">
            <a  >确认转出</a>
        </div>
    </div>
</div>
</body>
</html>